package com.sy.olddriver.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * Properties文件操作工具类
 *
 * @author Administrator
 */
public class PropertiesUtils {
    private PropertiesUtils() {

    }

    public static Properties loadProperties(String fileName) {
        Properties properties = new Properties();
        try {
            properties.load(PropertiesUtils.class.getClassLoader().getResourceAsStream(fileName));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties;
    }

}
